package com.hone.honewed.service.bannerWed.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eig.common.entity.homepageentity.banner.CrmBanner;
import com.eig.common.vo.Result;

import com.hone.honewed.dao.bannerWed.BannerDao;
import com.hone.honewed.service.bannerWed.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：YQ袁（2446806940@qq.com）
 * @date ：Created in 2022/12/28 16:32
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerDao bannerDao;

    @Override
    public Result getQianBanner() {
        QueryWrapper<CrmBanner> wrapper = new QueryWrapper<>();
        wrapper.eq("is_deleted",0);
        List<CrmBanner> crmBanners = bannerDao.selectList(wrapper);
        return new Result<>(2000,"查询成功",crmBanners);
    }
}
